<?php

echo "<h2 id='contentTitle'>".$pageTitle."</h2>";
echo $this->renderElement('message');

echo $form->create('Image', array('action' => 'upload', 'url'=>'/images/upload/'.$album_id, 'type' => 'file'));

echo $form->hidden('album_id');

echo "<div class='input'>";
echo $form->label('photo','Arquivo');
echo $form->file('File');
echo "</div>";

echo $form->input('legenda');
echo $form->label('Descrição');	
echo $form->textarea('descricao');
echo $form->submit('Enviar');

echo '<p>';
$listButton = "<span class=\"buttonList\">Voltar ao álbum</span>"; 
echo html_entity_decode($html->link($listButton, '/webs/albuns/view/'.$album_id,array('class'=>'button')));
echo '</p>';

echo $form->end();
